<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<table border="1">
    <thead>
        <th>id</th>
        <th>account</th>
        <th>periodical</th>
        <th>start Date</th>
        <th>end Date</th>
        <th>enabled</th>
        <th>action</th>
    </thead>
    <tbody>
    <c:forEach items="${subscriptions}" var="subscription">
        <tr>
            <td>${subscription.id}</td>
            <td>${subscription.account.email}</td>
            <td>${subscription.periodical.name}</td>
            <td>${subscription.startDate}</td>
            <td>${subscription.endDate}</td>
            <td>${subscription.enabled}</td>
            <td><a href="<c:url value='/subs/disable?subId=${subscription.id}'/>">disable</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>